.body {
  text-align: center;
}

.one {
  display: flex;
  align-items: center;
  height: 5rem;
  background-color: #f94751;
}

.logo img {
  margin-left: 10rem;
  height: 4rem;
  border-radius: 50px;
  width: 4rem;
}

.title {
  font-size: 2rem;
  margin-left: 2rem;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.search {
  display: flex;
  margin-left: auto;
  height: 2rem;
  width: 15rem;
  margin-left: 2rem;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  line-height: center;
  margin-top: 0.15rem;
}

.search input {
  border: none;
  background-color: white;
}

.searchButton {
  border: none;
  cursor: pointer;
  border-radius: 0 20px 20px 0;
}

.searchp {
  margin: 0.3rem;
}

.userActions {
  margin-left: 6rem;
}

.userActions a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.userActions a:hover {
  color: #ffc107;
}

.navbar {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.navbar ul {
  display: flex;
  list-style-type: none;
  margin-left: 2rem;
  padding: 0;
}

.navbar ul li {
  font-size: 1.3rem;
  font-weight: bold;
  margin-right: 5rem;
  text-decoration: none;
}

/* 导航列表 */
.submenu {
  width: 37.2rem;
  height: 9rem;
  position: fixed;
  /* 使用 fixed 定位 */
  left: 50%;
  /* 列表的左边定位到页面宽度的50%处 */
  transform: translateX(-50%);
  /* 水平居中 */
  top: 5rem;
  /* 根据需要调整距离顶部的位置 */
  /* 其他已有样式保持不变 */
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 0.625rem;
  z-index: 2;
  list-style: none;
  margin: 0;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);   */
  border-radius: 0 0 1rem 1rem;
  display: flex;
}

.submenu a {
  text-decoration: none;
  color: #222;
  position: relative;
  /* 或者 relative，取决于你的布局 */
  z-index: 1000;
}

/* 需要确保下拉菜单的父元素是相对定位，以便下拉菜单能正确地定位 */
.navbar ul li {
  position: relative;
  /* 添加相对定位 */
  z-index: 1000;
  /* 其余样式保持不变 */
}

.hotTags {
  white-space: nowrap;
  /* 防止标签换行 */
  display: inline-block;
  /* 让标签水平排列 */
  padding: 0.3125rem 0.625rem;
  /* 使用相对单位rem */
  margin-right: 0.625rem;
  /* 使用相对单位rem */
  border-radius: 0.3125rem;
  /* 使用相对单位rem */
  font-size: 1.125rem;
  font-weight: 600;
  margin-left: 1rem;
  border-right: #ccc 1px solid;
  line-height: 1.75rem;
  position: relative;
  /* 或者 relative，取决于你的布局 */
  z-index: 1000;
}

.hotTags_list {
  font-size: 0.875rem;
  color: #999;
  position: relative;
  /* 或者 relative，取决于你的布局 */
  z-index: 1000;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #f94751;
  /* 可选：如果需要导航栏背景色 */
  z-index: 1000;
  /* 确保导航栏位于其他内容上方 */
}











.sidebar {
  width: 250px;
  position: fixed;
  right: -400px;
  top: 11%;
  bottom: 0;
  transition: left 0.3s ease-in-out;
  height: 80vh;
  /* background-color: red;  */
  overflow-x: hidden;
  transition: right 0.3s ease-in-out;
  z-index: 999;
  background-image: url(https://picsum.photos/800/500/?random);
  border-radius: 20px;
}

.menu {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.5rem;
}



.sidebar.open {
  right: 0;
}

.fontw {
  font-size: 1.2rem;
}

.sidebarHeader {
  border-bottom: 1px solid #eaeaea;
  padding: 1rem;
  width: 10rem;
  height: 8.5rem;
  /* background-color: gray; */
  border-radius: 20px;
  text-align: center;
  border: 1px solid #eaeaea;
}



.avatarContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

/* .emailItem {  
    min-width: 200px;  
    white-space: normal;  
    overflow-wrap: break-word; 
} */

/* .submenu{
    display: flex;
    flex-direction: column;
    justify-content: center;
} */


.nickname {
  -webkit-box-align: center;
  height: 3rem;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.nickname:hover {
  background-color: #ffc107;
}


.defaulAtvatar {
  padding-top: 3.5rem;
  width: 9rem;
  height: 2.5rem;
  margin-left: 2.9rem;
  text-align: center;
}

.loginLink {
  display: block;
  padding-top: 3.5rem;
  width: 9rem;
  height: 2.5rem;
  margin-left: 2.9rem;
  text-align: center;
}